package com.paper.tiger.easy.rpc.s.server;

import com.paper.tiger.easy.rpc.resource.TestInvoke;
import com.paper.tiger.easy.rpc.s.client.client.ProxyFactoty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * [简要描述]:
 * [详细描述]:
 *
 * @author ZouHaiBo
 * @version 1.0, 2021/6/25 09:31
 * @since JDK 1.8
 */
@RestController
@RequestMapping("demo")
public class DemoController
{
    @Autowired
    private TestInvoke testInvoke;

    @GetMapping("test")
    public String test(String name) {

        String s = testInvoke.testInvoke(name);
        return s;
    }

}
